package com.mioto.ld.module.alert.service.impl;

import com.mioto.ld.module.alert.model.LinkageFunctionPO;
import org.springframework.stereotype.Service;

import com.mioto.ld.module.alert.dao.LinkageFunctionDao;
import com.mioto.ld.module.alert.model.LinkageFunction;
import com.mioto.ld.module.alert.service.ILinkageFunctionService;
import javax.annotation.Resource;
import java.util.List;

/**
 *
 * @author mioto
 * @date 2024-05-20 23:49:39
 */
@Service("linkageFunctionService")
public class LinkageFunctionServiceImpl implements ILinkageFunctionService{

    @Resource
    private LinkageFunctionDao linkageFunctionDao;

    @Override
    public List<LinkageFunction> findList(LinkageFunction linkageFunction) {
        return linkageFunctionDao.findList(linkageFunction);
    }

    @Override
    public int insert(LinkageFunction linkageFunction) {
        return linkageFunctionDao.insertIgnoreNull(linkageFunction);
    }

    @Override
    public int update(LinkageFunction linkageFunction) {
        return linkageFunctionDao.update(linkageFunction);
    }

    @Override
    public int updateIgnoreNull(LinkageFunction linkageFunction) {
        return linkageFunctionDao.updateIgnoreNull(linkageFunction);
    }

    @Override
    public LinkageFunction findByColumn(String column, Object value) {
        return linkageFunctionDao.findByColumn(column,value);
    }

    @Override
    public int deleteByColumn(String column, Object value) {
        return linkageFunctionDao.deleteByColumn(column,value);
    }

    @Override
    public int batchDelete(Integer[] ids) {
        return linkageFunctionDao.batchDelete(ids);
    }

    @Override
    public List<LinkageFunctionPO> findLinkageFunctionPOsByLinkageId(int linkageId) {
        return linkageFunctionDao.findLinkageFunctionPOsByLinkageId(linkageId);
    }
}